﻿namespace OpenAiProxy.API.Services
{
    public class ConfigService : IConfigService
    {
        public string? WebApiUrl { get; private set; }
        public string? DefaultApiUrl { get; private set; }
        public string? DefaultApiKey { get; private set; }
        public string? AesKey { get; private set; }

        public void Init(ConfigurationManager configuration)
        {
            WebApiUrl = configuration["App:WebApiUrl"];
            DefaultApiUrl = configuration["App:DefaultApiUrl"];
            DefaultApiKey = configuration["App:DefaultApiKey"];
            AesKey = configuration["App:AesKey"];
        }
    }
}
